package com.songchaojie.entity;

import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author  azha 
 * @create 2022-03-28 19:40 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Supermarket {

	/**
	 * table name:id
	 * table type:int(11)
	 * table comment:超市ID
	 */
	private Integer id;

	/**
	 * table name:fid
	 * table type:int(11)
	 * table comment:厂家ID
	 */
	private Integer fid;

	/**
	 * table name:sname
	 * table type:varchar(255)
	 * table comment:名称
	 */
	private String sname;

	/**
	 * table name:production
	 * table type:date
	 * table comment:生产日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date production;

	/**
	 * table name:overdue
	 * table type:date
	 * table comment:过期时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date overdue;

	/**
	 * table name:sid
	 * table type:int(11)
	 * table comment:省ID
	 */
	private Integer sid;

	/**
	 * table name:shid
	 * table type:int(11)
	 * table comment:市ID
	 */
	private Integer shid;

	/**
	 * table name:xid
	 * table type:int(11)
	 * table comment:县ID
	 */
	private Integer xid;

	/**
	 * table name:expiration
	 * table type:int(11)
	 * table comment:保质期
	 */
	private Integer expiration;

	private String fname;
	private String shengname;
	private String shiname;
	private String xianname;
	private Integer yu;

}
